Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <style> p.pos_fixed { position: fixed; top: 30px; right: 5px; color: red; } </style> </head> <body> <p><b>Note:</b> IE7 and IE8 supports the fixed value only if a !DOCTYPE is specified.</p> <p>Some text</p><p>Some text</p><p>Some text</p><p>Some text</p><p>Some text</p><p>Some text</p><p>Some text</p><p>Some text</p><p>Some text</p><p>Some text</p><p>Some text</p><p>Some text</p><p>Some text</p><p>Some text</p><p>Some text</p><p>Some text</p> <p class="pos_fixed">Some positioned text.</p> </body> <!-- Mirrored from www.w3schools.com/css/tryit.asp?filename=trycss_position_fixed by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:23:29 GMT --> </html>
Result:
Try it Yourself - © w3schools.com